package com.projectcost.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.projectcost.system.mapper.functionManagementMapper;
import com.projectcost.system.domain.functionManagement;
import com.projectcost.system.service.IfunctionManagementService;
import com.projectcost.common.core.text.Convert;

/**
 * 计算功能点Service业务层处理
 * 
 * @author projectcost
 * @date 2024-11-21
 */
@Service
public class functionManagementServiceImpl implements IfunctionManagementService 
{
    @Autowired
    private functionManagementMapper functionManagementMapper;

    /**
     * 查询计算功能点
     * 
     * @param id 计算功能点主键
     * @return 计算功能点
     */
    @Override
    public functionManagement selectfunctionManagementById(Long id)
    {
        return functionManagementMapper.selectfunctionManagementById(id);
    }

    /**
     * 查询计算功能点列表
     * 
     * @param functionManagement 计算功能点
     * @return 计算功能点
     */
    @Override
    public List<functionManagement> selectfunctionManagementList(functionManagement functionManagement)
    {
        return functionManagementMapper.selectfunctionManagementList(functionManagement);
    }

    /**
     * 新增计算功能点
     * 
     * @param functionManagement 计算功能点
     * @return 结果
     */
    @Override
    public int insertfunctionManagement(functionManagement functionManagement)
    {
        return functionManagementMapper.insertfunctionManagement(functionManagement);
    }

    /**
     * 修改计算功能点
     * 
     * @param functionManagement 计算功能点
     * @return 结果
     */
    @Override
    public int updatefunctionManagement(functionManagement functionManagement)
    {
        return functionManagementMapper.updatefunctionManagement(functionManagement);
    }

    /**
     * 批量删除计算功能点
     * 
     * @param ids 需要删除的计算功能点主键
     * @return 结果
     */
    @Override
    public int deletefunctionManagementByIds(String ids)
    {
        return functionManagementMapper.deletefunctionManagementByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除计算功能点信息
     * 
     * @param id 计算功能点主键
     * @return 结果
     */
    @Override
    public int deletefunctionManagementById(Long id)
    {
        return functionManagementMapper.deletefunctionManagementById(id);
    }
}
